<template>
	<view class="container">
		<view class="logo">
			<image :src="logo" style="border-radius: 12rpx;" mode="widthFix"></image>
			<view class="name">
				家庆福
			</view>
			<view class="version">
				V1.0.0
			</view>
		</view>
		<view class="box">
			<view class="f-item">
				<view class="content" @click="openAgreementPopup('用户协议')">
					<view class="label">
						用户协议
					</view>
					<view class="right">
						<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
					</view>
				</view>
			</view>
			<view class="f-item">
				<view class="content" @click="openAgreementPopup('隐私协议')">
					<view class="label">
						隐私协议
					</view>
					<view class="right">
						<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
					</view>
				</view>
			</view>
			<!-- <view class="f-item">
				<view class="content" @click="toUrl('/pagesMine/mine/BindPhone/BindPhone')">
					<view class="label">
						最新版本
					</view>
					<view class="right">
						<text>V1.0.0</text>
						<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
					</view>
				</view>
			</view> -->
			<!-- <view class="f-item">
				<view class="content" @click="toUrl('/pagesMine/mine/BindPhone/BindPhone')">
					<view class="label">
						清除缓存
					</view>
					<view class="right">
						<text>3.6M</text>
						<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
					</view>
				</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				logo: uni.getStorageSync("logo"),
			};
		},
		methods: {
			// 打开协议弹窗
			openAgreementPopup(type) {
				console.log('打开协议弹窗', type)
				uni.navigateTo({
					url: "/pagesRegion/servicePersonnelReview/agreement?type=" + type,
				});
			},
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
	.container {

		.logo {
			padding-top: 90rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			image {
				width: 228rpx;
				height: 228rpx;
			}

			.name {
				font-weight: bold;
				font-size: 36rpx;
				color: #000000;
				line-height: 50rpx;
				margin-top: 16rpx;
				text-align: center;
			}

			.version {
				font-weight: bold;
				font-size: 28rpx;
				color: #000000;
				line-height: 16rpx;
				margin-top: 16rpx;
				text-align: center;
			}
		}

		.box {
			width: 100%;
			background-color: #FFFFFF;
			margin-top: 82rpx;
			padding: 0 30rpx;
			box-sizing: border-box;

			.f-item {
				width: 100%;
				padding: 20rpx 0;
				// &:not(:first-child){
				border-bottom: 2rpx solid #F9F9F9;

				// }
				.content {
					display: flex;
					align-items: center;
					justify-content: space-between;

					.label {
						font-weight: bold;
						font-size: 32rpx;
						color: #000000;
						line-height: 44rpx;
					}

					.right {
						display: flex;
						align-items: center;

						text {
							font-weight: 400;
							font-size: 32rpx;
							color: #8D8D8D;
							line-height: 44rpx;
						}

						&.bindPhone {
							text.red {
								color: #E72A2A;
							}
						}

						image {
							width: 16rpx;
							height: 29rpx;
							margin-left: 22rpx;
						}
					}
				}

				&>.tip {
					font-weight: 400;
					font-size: 24rpx;
					color: #8D8D8D;
					line-height: 34rpx;
					margin-top: 16rpx;
				}
			}
		}

	}
</style>